package com.woniuxy.oldmanapi.mapper;

import com.woniuxy.oldmanapi.cvo.CareprojectVo;
import com.woniuxy.oldmanapi.entity.Careproject;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface CareprojectMapper extends Mapper<Careproject> {
    @Delete("DELETE from careproject where careType_id=#{typeid}")
    void removeByTypeId(int typeid);

    List<CareprojectVo> selectByCons(@Param("caretypeId") int caretypeId, @Param("pname") String pname);
}
